﻿package java;

public class StudentsBiz {
	String[] names = new String[30];
	public void addName(String name){
		for (int i = 0; i < names.length; i++) {
			if (names[i]==null) {
				names[i]=name;
				break;
			}
		}
	}
	public void showName(){
		System.out.println("本班学生列表:");
		for (int i = 0; i < names.length; i++) {
			if (names[i]!=null) {
				System.out.println(names[i]+"\t");
			}
		}
		System.out.println();
	}
}
